package edu.nf.bs.util;

import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;


public class Dates {
	public static Date getDate(String shiJian) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			Date date=new Date(sdf.parse(shiJian).getTime());
			return date;
		} catch (ParseException e) {
			System.out.println("时间装换失败 ");
			e.printStackTrace();
		}
		return null;
	}
}
